function feedback_self_list() {
    var _this = this;
    var page;
    _this.obj = null;
    _this.templateArr = [];
    _this.page_size = 10;

    // init
    _this.init = function (_page) {
        page = _page;
        _this.initTable();
        _this.initEvent();
    };

    _this.initTable = function () {
        var list_url = appPath + "/feedback/self/list";
        page.init("feedback_self_form", list_url, "feedback_self_list", "feedback_self_page", 1, _this.page_size);
        page.goPage(1);
        page.list = function (dataList) {
            _this.obj = dataList;
            if (dataList == null) {
                return;
            }
            var len = dataList.length;
            var inner = "", item;
            // 组装数据
            for (var i = 0; i < len; i++) {
                item = dataList[i];
                inner += '<tr >';
                inner += '<td width="50">' + (i + 1) + '</td>';
                inner += '<td >' + item['questionContentTitle'] + '</td>';
                inner += '<td >' + item['questionChrType'] + '</td>';
                inner += '<td>' + item['problemStatusCn'] + '</td>';
                inner += '<td>' + item['createTime'] + '</td>';
                inner += '<td>' + item['createUser'] + '</td>';
                inner += '<td >';
                inner += '<a href="javascript:feedback_self_list.previewQuestion(\'' + item['questionId'] + '\');" class="a a-publish">题目预览</a>';

                if (item['problemStatus'] === '1' || item['problemStatus'] === 1) {
                    if (item['attchments'] !== null && item['attchments'].length > 0) {
                        inner += '<a href="javascript:feedback_self_list.feedbackFile(\'' + item['attchments'] + '\');" class="a a-publish">反馈附件</a>';
                    }
                    inner += '<a href="javascript:feedback_self_list.updateQuestion(\'' + item['questionId']+'\',\'' +item['id']+ '\');" class="a a-publish">修改</a>';
                    inner += '<a href="javascript:feedback_self_list.updateProblemStatus(\'' + item['id'] + '\');" class="a a-publish">无效反馈</a>';
                }
                inner += '</td></tr>';
            }
            return inner;
        }

    };


    _this.initEvent = function () {


    };
    //反馈附件
    _this.feedbackFile = function (attchments) {
        if (attchments != null && attchments.length > 0) {
            var arrStr = attchments.split(";");
            if (arrStr.length > 0) {
                for (var i = 0; i < arrStr.length; i++) {
                    var fileArr = arrStr[i].split(",");
                    window.open( appPath + '/popup/msg/download/' + fileArr[0] + '?fileName=' + fileArr[1]);
                }
            }
        }
    };
    //题目预览
    _this.previewQuestion = function (questionId) {
        questionId = questionId.replace("-","");
        var url = appPath + '/admin/questionSelf/detail?id=' + questionId + '&isUpdate=0';
        window.open(url, "_blank");
    };

    //无效反馈
    _this.updateProblemStatus = function (id) {
        layer.confirm('是否确认此反馈无效，一旦确认，将不能在此进行修改！', {btn: ['是', '否']}, function (index) {
            layer.close(index);
            $.ajax({
                url: appPath + "/feedback/self/update?selfId=" + id,
                dataType: "json",
                async: true,
                type: "GET",
                success: function (data) {
                    console.log(JSON.stringify(data));

                    layer.msg(data.message);
                    _this.initTable();
                }
            });
        })
    };
    //修改
    _this.updateQuestion = function (questionId,feedbackId) {
        questionId = questionId.replace("-","");
        var url = appPath + '/admin/questionSelf/detail?id=' + questionId + '&isUpdate=1&feedbackId='+feedbackId;
        window.open(url, "_blank");
    };

    //根据状态查询
    _this.queryFeedbackByStatus = function () {
        _this.initTable();
    }

    _this.search = function () {
        _this.initTable();
    }

}

var feedback_self_list = new feedback_self_list();


//搜索高亮
function getFontCss(treeId, treeNode) {
    return (!!treeNode.highlight) ? {'color': "#A60000", 'font-weight': "bold"} : {
        'color': "#333",
        'font-weight': "normal"
    };
}